package com.example.zlw.dem6;

/**
 * @program: Zlw
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-09 09:39
 **/
public class YeZhu implements HeiZhu{
    //被代理對象
     private PeiQi target;

    public YeZhu(PeiQi peiQi) {
        eat();
        chao();
        target.Heizhu();
    }
    public void  eat(){
        System.out.println("吃黑豬");
    }
    public void  chao(){
        System.out.println("爆炒豬肉");
    }

    @Override
    public void heizhu() {

    }
}
